package edu.uta.shorthorn.news.model;

public class News 
{
	private String title;
	private String link;
	private String pubDate;
	private String author;
	private StringBuffer content;
	
	public News( String link, String title, String author, String pubDate)
	{
		// TODO: Check link to make sure it is a valid URL link
		// TODO: Title length is less than 200
		this.setLink(link);
		this.setTitle(title);
		this.setAuthor(author);
		this.setPubDate(pubDate);
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getLink() {
		return link;
	}

	public void setLink(String link) {
		this.link = link;
	}

	public String getPubDate() {
		return pubDate;
	}

	public void setPubDate(String pubDate) {
		this.pubDate = pubDate;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public StringBuffer getContent() {
		return content;
	}

	public void setContent(StringBuffer content) {
		this.content = content;
	}
}
